-- GENERATED SPELL FOR [Overseer Gorthak] --


function spell0_17304(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17304', 577, 1)
end

function spell1_17304(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17304', 8269, 1)
end

function Sorts_17304(pUnit, Event)
local choix_sorts_17304 = math.random(0, 1)
if choix_sorts_17304 == 0 then
pUnit:RegisterEvent('spell0_17304', 1, 1)
end
if choix_sorts_17304 == 1 then
pUnit:RegisterEvent('spell1_17304', 1, 1)
end
end

function mob17304_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17304', math.random(1500, 3000), 1)
end

function mob17304_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17304_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17304_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17304, 1, 'mob17304_Action')
RegisterUnitEvent(17304, 2, 'mob17304_Leave')
RegisterUnitEvent(17304, 3, 'mob17304_Kill')
RegisterUnitEvent(17304, 4, 'mob17304_Die')
